package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.BasisAntenna;
import org.apache.ibatis.annotations.Param;

/**
 * 天线Mapper接口
 * 
 * @author wangzebing
 * @date 2025-05-16
 */
public interface BasisAntennaMapper 
{
    /**
     * 查询天线
     * 
     * @param antennaId 天线主键
     * @return 天线
     */
    public BasisAntenna selectBasisAntennaByAntennaId(Long antennaId);

    /**
     * 查询天线列表
     * 
     * @param basisAntenna 天线
     * @return 天线集合
     */
    public List<BasisAntenna> selectBasisAntennaList(BasisAntenna basisAntenna);

    /**
     * 新增天线
     * 
     * @param basisAntenna 天线
     * @return 结果
     */
    public int insertBasisAntenna(BasisAntenna basisAntenna);

    /**
     * 修改天线
     * 
     * @param basisAntenna 天线
     * @return 结果
     */
    public int updateBasisAntenna(BasisAntenna basisAntenna);

    /**
     * 删除天线
     * 
     * @param antennaId 天线主键
     * @return 结果
     */
    public int deleteBasisAntennaByAntennaId(Long antennaId);

    /**
     * 批量删除天线
     * 
     * @param antennaIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBasisAntennaByAntennaIds(Long[] antennaIds);

    //通过阵地id查询天线
    public List<BasisAntenna> findByPosition(@Param("positionId") Long positionId);

    public boolean addBasisPositionAntenna(BasisAntenna basisAntenna);

}
